//
//  ZJLuckyController.m
//  Lottery
//
//  Created by ZJ on 2018/8/15.
//  Copyright © 2018年 iCatch Technology Inc. All rights reserved.
//

#import "ZJLuckyController.h"

@interface ZJLuckyController ()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;

@end

@implementation ZJLuckyController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    // 设置要做动画的图片
    self.imageView.animationImages = @[[UIImage imageNamed:@"lucky_entry_light0"], [UIImage imageNamed:@"lucky_entry_light1"]];
    
    // 时间
    self.imageView.animationDuration = 1.0;
    
    // 次数
    self.imageView.animationRepeatCount = 0;
    
    // 开始
    [self.imageView startAnimating];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
